{*
<div id="gallery_{$fieldname}_{$count}_appear" class="gallery_img" style="overflow:hidden;display:none;" onmouseover="this.style.backgroundColor='#333';" onmouseout="this.style.backgroundColor='';">
	<div style="height:60px;width:60px;background:url() top left no-repeat;"></div>
</div>

{$img|@print_r:true}

*}

	{return_resize_img src="`$MEDIA_WEB``$img.picture_dir``$img.picture_filename`" id="mypic"  width="78" height="58" alt="`$filedetails.filename`" stretch="0"}
	<div class="item-holder">

		<div class="item" >	
				<input type="hidden" name="obj[{$obj.obj_id}][{$fieldname}][{$count}][filename]" id="SortFile{$obj.fieldname}_{$obj.obj_id}_filename_{$count}" value="{$img.picture_filename}"/>
				<input type="hidden" name="obj[{$obj.obj_id}][{$fieldname}][{$count}][dir]" id="SortDir{$obj.fieldname}_{$obj.obj_id}_dir_{$count}" value="{$img.picture_dir}"/>
				<input type="hidden" name="obj[{$obj.obj_id}][{$fieldname}][{$count}][description]" id="SortDescr{$obj.fieldname}_{$obj.obj_id}_description_{$count}" value="{$img.picture_description}"/>
				<div class="preview" style="background: url({$img_mypic.src}) top center no-repeat;"></div>
				<div class="description" id="Descr{$obj.fieldname}_{$obj.obj_id}_description_{$count}">
					{if '' != $img.picture_description}
						{$img.picture_description}
					{else}
						-keine Bezeichnung-
					{/if}
				</div>
				<div class="icons" >
					<span class="zoom" style="background:url(/ccds_library/famfamfam/icons/zoom.png) top left no-repeat;"></span>
					<span onclick="{strip}{literal}
					foo=function(elm) {
						tmp = elm.parentNode.parentNode.parentNode.parentNode;
						tmp.removeChild(elm.parentNode.parentNode.parentNode);
					};foo(this);
					{/literal}{/strip}"class="remove" style="background:url(/ccds_library/famfamfam/icons/bin.png) top left no-repeat;"></span>
					<span onclick="{strip}{literal}
try {
							$('<div/>').xWindow(
								'prompt', 
								{
									title: 'Bezeichnung &auml;ndern',
									content:''
								},
								function(val, $elem){
									xajax.$('{/literal}SortDescr{$obj.fieldname}_{$obj.obj_id}_description_{$count}{literal}').value = val;
									xajax.$('{/literal}Descr{$obj.fieldname}_{$obj.obj_id}_description_{$count}{literal}').innerHTML = val;
									this.destroy();
								}
							).find('input').val(xajax.$('{/literal}SortDescr{$obj.fieldname}_{$obj.obj_id}_description_{$count}{literal}').value);
			} catch(ex) { console.log(ex);}		
					{/literal}{/strip}" class="edit" style="background:url(/ccds_library/famfamfam/icons/image_edit.png) top left no-repeat;"></span>
				</div>
		</div>
	</div>	
